package edu.sdjzu.exam.mapper.examSession;

import edu.sdjzu.exam.domain.examSession.ExamLog;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;


@Mapper
public interface ExamLogMapper {

    @Insert("INSERT INTO Exam_Logs (session_id, student_id, action, details, ip_address, device_info, action_time) " +
            "VALUES (#{sessionId}, #{studentId}, #{action}, #{details}, #{ipAddress}, #{deviceInfo}, #{actionTime})")
    void insertLog(ExamLog log);
}
